package kitread;

import java.io.IOException;

import kitread.model.Feed;
import kitread.model.FeedsCollection;
import kitread.model.FeedItem;

import com.sun.syndication.io.FeedException;

public class MainTest {

	public static void main(String[] args) throws IOException, IllegalArgumentException, FeedException {
		
		FeedsCollection f = new FeedsCollection();
		
		f.addFeed(new Feed("http://mattinopadova.gelocal.it/rss/cmlink/rss-mattino-padova-1.841537"));
		f.addFeed(new Feed("http://www.planetmountain.com/rss.lasso"));
		f.addFeed(new Feed("http://www.montagna.tv/cms/?feed=rss2"));

		f.refresh();
		
		for(FeedItem fi : f) {
			System.out.println(fi);
		}
	}
}
